package cn.rongdao.jrkabao.ui.loan.adapter;

import android.content.Context;
import android.view.ViewGroup;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;
import com.mifengkong.frtools.inputmethod.FRView;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.loan.ApplySuccessBean;
import cn.rongdao.jrkabao.ui.loan.adapter.viewholder.ApplySuccessViewHolder;


/**
 * Created by jack on 2017/8/24
 */

public class ApplySuccessAdapter extends FRBaseRecyclerAdapter<ApplySuccessBean.ReaultListBean.ProductListBean, ApplySuccessViewHolder> {

    private ApplySuccessViewHolder.OnApplySuccessClickListener applySuccessClickListener;

    public ApplySuccessAdapter(Context context) {
        super(context);
    }

    @Override
    public ApplySuccessViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ApplySuccessViewHolder(FRView.inflateLayout(getContext(), R.layout.item_multi_push_not_applied, parent, false),applySuccessClickListener, getDataList().size());
    }

    public void setApplySuccessClickListener(ApplySuccessViewHolder.OnApplySuccessClickListener applySuccessClickListener) {
        this.applySuccessClickListener = applySuccessClickListener;
    }
}